<%--
  Created by IntelliJ IDEA.
  User: sky
  Date: 2020/5/19
  Time: 10:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="UTF-8">
    <title>Basic Form - jQuery EasyUI Demo</title>
</head>
<script
        src="${pageContext.request.contextPath}/plugins/jQuery/jquery-2.2.3.min.js"></script>
<body>
<h2>Basic Form</h2>
<p>Fill the form and submit it.</p>
<div style="margin:20px 0;"></div>
<div class="easyui-panel" title="New Topic" style="width:100%;max-width:400px;padding:30px 60px;">
    <form id="ff" method="post" action="/user/changePassword.do">
        <div style="margin-bottom:20px">
            请输入新密码<input id="p1" name="password" style="width:100%" type="password">
        </div>
        <div style="margin-bottom:20px">
            请确认密码<input id="p2" name="password2" style="width:100%" type="password">
        </div>
        <div style="text-align:center;padding:5px 0">
            <input class="easyui-linkbutton" onclick="clearForm()" style="width:80px" type="submit" value="Submit"/>
            <input class="easyui-linkbutton" onclick="clearForm()" style="width:80px" type="button" value="Clear"/>
        </div>
    </form>

</div>
<script>
    function submitForm(){
        $('#ff').form('submit');
    }
    function clearForm(){
        $("#p1").val("");
        alert("fff");
        $("#p2").val("");
    }
    $(function () {
        alert("111");
    });
</script>
</body>
</html>
